import request from "@/utils/request"

// 获取sku列表
export const reqSkuList = (page, limit) => request.get(`/dev-list/admin/product/list/${page}/${limit}`)

// 删除sku
export const reqDeleteSku = (id) => request.delete(`/dev-list/admin/product/deleteSku/${id}`)

// 上架
export const reqOnSale = (skuId) => request.get(`/dev-list/admin/product/onSale/${skuId}`)

// 下架
export const reqCancelSale = (skuId) => request.get(`/dev-list/admin/product/cancelSale/${skuId}`)

// SKU详情
export const reqSkuById = (skuId) => request.get(`/dev-list/admin/product/getSkuById/${skuId}`)